<div class="head-content">
    <h3>Daftar Format Input</h3>
    <div class="clear"></div>
</div>
<div class="search-box">
    <h3><a href="#" class="down">Search for type</a></h3>
    <form action="{$config->site_url('input/opinputversions/process_search')}" method="post">
        <table class="table-search" width="100%">
            <tr>
                <th width="25%">Format Types</th>
                <td width="75%">
                    <select name="search_type">
                        <option value="">-- all types --</option>
                        <option value="Batch Upload" {if {$search.input_format_type|default:''} == "Batch Upload"}selected="selected"{/if}>Batch Upload</option>
                        <option value="Single Mixed Upload" {if {$search.input_format_type|default:''} == "Single Mixed Upload"}selected="selected"{/if}>Single Mixed Upload</option>
                    </select>
                    <input class="submit" name="search" type="submit" value="Display" />
                    <input class="submit" name="search" type="submit" value="Reset" />
                </td>
            </tr>
        </table>
    </form>
</div>
<table class="table-view" width="100%">
    <tr>
        <th width="5%">No</th>
        <th width="18%">Format Type</th>
        <th width="25%">Input Versions</th>
        <th width="8%">File Type</th>
        <th width="8%">Delimiter</th>
        <th width="25%">Output Versions</th>
        <th width="10%"></th>
    </tr>
    {foreach from=$rs_id item=data}
    <tr {if ($data.default_status eq 'yes') <> 0}style="background-color: #EAFEED;"{/if}>
        <td>{$no++}.</td>
        <td>{$data.input_format_type}</td>
        <td>{$data.input_version}</td>
        <td align="center">{$data.input_file_type}</td>
        <td align="center">{$data.input_delimiter}</td>
        <td>{$data.output_version}</td>
        <td align="center">
            <a href="{$config->site_url({'input/opinputversions/edit/'|cat:$data.input_id})}" class="button-edit">Manage</a>
        </td>
    </tr>
    {foreachelse}
    <tr>
        <td colspan="7">Data not found</td>
    </tr>
    {/foreach}
</table>